import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Task } from './entities/task.entity';
import { TaskTemplate } from './entities/task-template.entity';
import { TaskCategory } from './entities/task-category.entity';
import { TasksService } from './tasks.service';
import { TasksController } from './tasks.controller';
import { TaskTemplatesService } from './task-templates.service';
import { TaskTemplatesController } from './task-templates.controller';
import { TaskCategoriesService } from './task-categories.service';
import { TaskCategoriesController } from './task-categories.controller';
import { UsersModule } from '../users/users.module';
import { DevicesModule } from '../devices/devices.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Task, TaskTemplate, TaskCategory]),
    UsersModule,
    DevicesModule,
  ],
  controllers: [TasksController, TaskTemplatesController, TaskCategoriesController],
  providers: [TasksService, TaskTemplatesService, TaskCategoriesService],
  exports: [TasksService, TaskTemplatesService, TaskCategoriesService],
})
export class TasksModule {}
